package _05获取Class对象的基本信息;

import com.asin.domain.Person;

public class DemoGetName {
    public static void main(String[] args) {
        //获取class对象
        Class<Person> personClass = Person.class;
        //获取全类名
        System.out.println(personClass.getName());//com.asin.domain.Person
        //获取类名
        System.out.println( personClass.getSimpleName());//Person
    }
}
